<template>
  <div class="position">
    <span class="iconfont position__icon">&#xebbb;</span>
    北京理工大学国防科技园2号楼10层
    <span class="iconfont position__notice">&#xe61a;</span>
  </div>
  <router-link to="/search">
    <div class="search">
      <span class="search__icon iconfont">&#xe65c;</span>
      <div class="search__input">山姆会员商店优惠商品</div>
    </div>
  </router-link>
  <div class="banner">
    <img
      src="http://www.dell-lee.com/imgs/vue3/banner.jpg"
      alt=""
      class="banner__image"
    />
  </div>
  <div class="icons">
    <ul class="icons__list">
      <li class="icons__list__item" v-for="item in StaticList" :key="item.id">
        <img :src="item.imgUrl" alt="" class="icons__list__item__img" />
        <div class="icons__list__item__title">{{ item.title }}</div>
      </li>
    </ul>
  </div>
  <div class="grp"></div>
</template>
<script>
export default {
  name: "StaticPage",
  setup() {
    const StaticList = [
      {
        id: 1,
        imgUrl: "http://www.dell-lee.com/imgs/vue3/超市.png",
        title: "超市便利",
      },
      {
        id: 2,
        imgUrl: "http://www.dell-lee.com/imgs/vue3/菜市场.png",
        title: "菜市场",
      },
      {
        id: 3,
        imgUrl: "http://www.dell-lee.com/imgs/vue3/水果店.png",
        title: "水果店",
      },
      {
        id: 4,
        imgUrl: "http://www.dell-lee.com/imgs/vue3/鲜花.png",
        title: "鲜花绿植",
      },
      {
        id: 5,
        imgUrl: "http://www.dell-lee.com/imgs/vue3/医药健康.png",
        title: "医药健康",
      },
      {
        id: 6,
        imgUrl: "http://www.dell-lee.com/imgs/vue3/家居.png",
        title: "家居时尚",
      },
      {
        id: 7,
        imgUrl: "http://www.dell-lee.com/imgs/vue3/蛋糕.png",
        title: "烘培蛋糕",
      },
      {
        id: 8,
        imgUrl: "http://www.dell-lee.com/imgs/vue3/签到.png",
        title: "签到",
      },
      {
        id: 9,
        imgUrl: "http://www.dell-lee.com/imgs/vue3/大牌免运.png",
        title: "大牌免运",
      },
      {
        id: 10,
        imgUrl: "http://www.dell-lee.com/imgs/vue3/红包.png",
        title: "红包套餐",
      },
    ];
    return { StaticList };
  },
};
</script>
<style lang='scss' scoped>
@import "../../style/viriables.scss";
@import "../../style/mixins.scss";
.position {
  position: relative;
  padding: 0.16rem 0.24rem 0.16rem 0;
  line-height: 0.22rem;
  font-size: 0.16rem;
  @include ellipsis;
  .position__icon {
    position: relative;
    top: 0.01rem;
    font-size: 0.2rem;
    color: $content-fontcolor;
  }
  .position__notice {
    position: absolute;
    right: 0;
    font-size: 0.2rem;
    transform: translateY(0.03rem);
    color: #000;
  }
}
a {
  text-decoration: none;
}
.search {
  display: flex;
  align-items: center;
  height: 0.32rem;
  background-color: $search-bgColor;
  border-radius: 0.16rem;
  padding-left: 0.16rem;
  overflow: hidden;
  margin-bottom: 0.12rem;

  &__icon {
    color: #b7b7b7;
    font-size: 0.16rem;
  }
  &__input {
    display: flex;
    align-items: center;
    background-color: $search-bgColor;
    width: 100%;
    height: 100%;
    outline: none;
    border: 0;
    margin-left: 0.12rem;
    font-size: 0.14rem;
    color: #b7b7b7;
  }
}
.banner {
  height: 0;
  overflow: hidden;
  padding-bottom: 25.4%;
  margin-bottom: 0.16rem;
  .banner__image {
    width: 100%;
  }
}
.icons {
  &__list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    &__item {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      width: 20%;
      margin-bottom: 0.16rem;
      &__img {
        width: 0.4rem;
        height: 0.4rem;
      }
      &__title {
        display: flex;
        justify-content: center;
        width: 100%;
        color: $content-fontcolor;
        font-size: 0.12rem;
        margin-top: 0.06rem;
      }
    }
  }
}
.grp {
  margin: 0 -0.18rem;
  height: 0.1rem;
  background-color: $content-bgColor;
}
</style>